/*
package com.deer.wms.base.system.web.take;

import com.deer.wms.base.system.model.take.TakeStockDaily;
import com.deer.wms.base.system.service.take.TakeStockDailyService;
import com.deer.wms.base.system.util.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

*/
/**
 * 定时任务。盘点日报
 *//*

@Component
public class TakeStockDailyScheduled {
    @Autowired
    private TakeStockDailyService takeStockDailyService;

    */
/**
     * 添加盘点日报
     *//*

    @Scheduled(cron ="0 0 0 * * ?")
    public void save(){
        TakeStockDaily takeStockDaily = new TakeStockDaily();
        DateUtil dateUtil = new DateUtil();
        Map<String, String> stringStringMap = dateUtil.ZeroTime();
        takeStockDaily.setStartTime(stringStringMap.get("today"));
        takeStockDaily.setEndTime(stringStringMap.get("yesterday"));
        List<TakeStockDaily> allQuantity = takeStockDailyService.getAllQuantity(takeStockDaily);
        for (TakeStockDaily stockDaily : allQuantity) {
            takeStockDailyService.saveTakeStockDaily(stockDaily);
        }
    }
}
*/
